<?php
//$ROOT = $_SERVER["DOCUMENT_ROOT"].'/';

/*======= DATABASE =======*/
//include ($ROOT . 'database/Database.php');
require ($ROOT . 'database/Database.php');

/*$database = "kiliwa";
$hostname = "localhost";
$hostport = "3306"; 
$username = "kiliwa"; 
$password = "TLyZxj6MsMy5Af5Z";*/

$database = "a1141277_kiliwa";
$hostname = "mysql1.000webhost.com";
$hostport = "3306"; 
$username = "a1141277_kiliwa"; 
$password = "peps11";
$db = new Database($database, $hostname, $hostport, $username, $password);


/*======= SMARTY =======*/
require ($ROOT . 'interface/SMARTY/Smarty.class.php');

$smarty = new Smarty;
$smarty->template_dir = $ROOT . 'interface/templates/';
$smarty->compile_dir = $ROOT . 'interface/templates/compile/';
$smarty->config_dir = $ROOT . 'interface/templates/config/';
$smarty->cache_dir = $ROOT . 'interface/templates/cache/';


/*======= LOGIC =======*/
require ($ROOT . 'logic/User.php');
require ($ROOT . 'logic/Category.php');
require ($ROOT . 'logic/Subcategory.php');
require ($ROOT . 'logic/ResourceType.php');
require ($ROOT . 'logic/UserType.php');
require ($ROOT . 'logic/Publication.php');

?>